package com.decorate.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * 设计师
 * @TableName designer
 */
public class Designer implements Serializable {
    /**
     * 主键
     */
    private Integer id;

    /**
     * 身份
     */
    private String identity;

    /**
     * 设计经验
     */
    private String experience;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 创建人
     */
    private String createBy;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 更新人
     */
    private String updateBy;

    /**
     * 是否禁用
     */
    private String isDelete;

    /**
     * 公司id
     */
    private Integer companyId;

    /**
     * 设计理念
     */
    private String designPhilosophy;

    /**
     * 代表作品
     */
    private String representativeWorks;

    /**
     * 姓名
     */
    private String name;

    /**
     * 作品数量
     */
    private Integer productNumbers;

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    public Integer getId() {
        return id;
    }

    /**
     * 主键
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 身份
     */
    public String getIdentity() {
        return identity;
    }

    /**
     * 身份
     */
    public void setIdentity(String identity) {
        this.identity = identity;
    }

    /**
     * 设计经验
     */
    public String getExperience() {
        return experience;
    }

    /**
     * 设计经验
     */
    public void setExperience(String experience) {
        this.experience = experience;
    }

    /**
     * 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 创建人
     */
    public String getCreateBy() {
        return createBy;
    }

    /**
     * 创建人
     */
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    /**
     * 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 更新人
     */
    public String getUpdateBy() {
        return updateBy;
    }

    /**
     * 更新人
     */
    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    /**
     * 是否禁用
     */
    public String getIsDelete() {
        return isDelete;
    }

    /**
     * 是否禁用
     */
    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete;
    }

    /**
     * 公司id
     */
    public Integer getCompanyId() {
        return companyId;
    }

    /**
     * 公司id
     */
    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    /**
     * 设计理念
     */
    public String getDesignPhilosophy() {
        return designPhilosophy;
    }

    /**
     * 设计理念
     */
    public void setDesignPhilosophy(String designPhilosophy) {
        this.designPhilosophy = designPhilosophy;
    }

    /**
     * 代表作品
     */
    public String getRepresentativeWorks() {
        return representativeWorks;
    }

    /**
     * 代表作品
     */
    public void setRepresentativeWorks(String representativeWorks) {
        this.representativeWorks = representativeWorks;
    }

    /**
     * 姓名
     */
    public String getName() {
        return name;
    }

    /**
     * 姓名
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 作品数量
     */
    public Integer getProductNumbers() {
        return productNumbers;
    }

    /**
     * 作品数量
     */
    public void setProductNumbers(Integer productNumbers) {
        this.productNumbers = productNumbers;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Designer other = (Designer) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getIdentity() == null ? other.getIdentity() == null : this.getIdentity().equals(other.getIdentity()))
            && (this.getExperience() == null ? other.getExperience() == null : this.getExperience().equals(other.getExperience()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
            && (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()))
            && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId()))
            && (this.getDesignPhilosophy() == null ? other.getDesignPhilosophy() == null : this.getDesignPhilosophy().equals(other.getDesignPhilosophy()))
            && (this.getRepresentativeWorks() == null ? other.getRepresentativeWorks() == null : this.getRepresentativeWorks().equals(other.getRepresentativeWorks()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getProductNumbers() == null ? other.getProductNumbers() == null : this.getProductNumbers().equals(other.getProductNumbers()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getIdentity() == null) ? 0 : getIdentity().hashCode());
        result = prime * result + ((getExperience() == null) ? 0 : getExperience().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
        result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
        result = prime * result + ((getDesignPhilosophy() == null) ? 0 : getDesignPhilosophy().hashCode());
        result = prime * result + ((getRepresentativeWorks() == null) ? 0 : getRepresentativeWorks().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getProductNumbers() == null) ? 0 : getProductNumbers().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", identity=").append(identity);
        sb.append(", experience=").append(experience);
        sb.append(", createTime=").append(createTime);
        sb.append(", createBy=").append(createBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", companyId=").append(companyId);
        sb.append(", designPhilosophy=").append(designPhilosophy);
        sb.append(", representativeWorks=").append(representativeWorks);
        sb.append(", name=").append(name);
        sb.append(", productNumbers=").append(productNumbers);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}